The ICEfaces inputRichText component uses the FCKEditor API to provide JSF based rich text component.
The following code shows how to create a simple inputRichText component
<ice:inputRichText
value="#{bean.value}"
/>
The following steps are involved in creating the custom toolbar:
FCKConfig.ToolbarSets["MyToolbar"] = [['Bold','Italic', 'Underline'], ['Save']] ;
<ice:inputRichText toolbar="MyToolbar" customConfigPath="js/config.js"/>
The following steps are involved in defining the custom CSS:
FCKConfig.EditorAreaCSS = 'http://'+ window.location.host +'/'+window.location.pathname.split("/")[1]+'/css/fck_editorarea.css' ;<ice:inputRichText customConfigPath="js/config.js"/>
|
tag-name:
|
<ice:inputRichText>
|
|
tag-class:
|
com.icesoft.faces.component.inputrichtext.InputRichTextTag
|
|
component-class:
|
com.icesoft.faces.component.inputrichtext.InputRichText
|
|
component-type:
|
com.icesoft.faces.InputRichText
|
|
component-family:
|
javax.faces.Input
|
|
renderer-class:
|
com.icesoft.faces.component.inputrichtext.InputRichTextRenderer
|
|
renderer-type:
|
com.icesoft.faces.InputRichTextRenderer
|